package tools;


public class Translator {

	public static String toPolish(String english) {
		if (english.equalsIgnoreCase("WAITING"))
			return "Oczekuje";
		else if (english.equalsIgnoreCase("FIXED"))
			return "Naprawione";
		else if (english.equalsIgnoreCase("INPROGRESS"))
			return "W naprawie";
		else if (english.equalsIgnoreCase("ADMIN"))
			return "Administrator";
		else if (english.equalsIgnoreCase("SERVICEMAN"))
			return "Serwisant";
		else if (english.equalsIgnoreCase("CLIENT"))
			return "Klient";
		else if (english.equalsIgnoreCase("MONITOR"))
			return "Monitor";
		else if (english.equalsIgnoreCase("PC"))
			return "PC";
		else if (english.equalsIgnoreCase("PRINTER"))
			return "Drukarka";
		else if (english.equalsIgnoreCase("OTHER"))
			return "Inne";
		else if (english.equalsIgnoreCase("LAPTOP"))
			return "Laptop";
		return english;
	}
	
	public static String toEnglish(String polish) {
		if (polish.equalsIgnoreCase("Oczekuje"))
			return "WAITING";
		else if (polish.equalsIgnoreCase("Naprawione"))
			return "FIXED";
		else if (polish.equalsIgnoreCase("W naprawie"))
			return "INPROGRESS";
		else if (polish.equalsIgnoreCase("Administrator"))
			return "ADMIN";
		else if (polish.equalsIgnoreCase("Serwisant"))
			return "SERVICEMAN";
		else if (polish.equalsIgnoreCase("Klient"))
			return "CLIENT";
		else if (polish.equalsIgnoreCase("Monitor"))
			return "MONITOR";
		else if (polish.equalsIgnoreCase("PC"))
			return "PC";
		else if (polish.equalsIgnoreCase("Drukarka"))
			return "PRINTER";
		else if (polish.equalsIgnoreCase("Inne"))
			return "OTHER";
		else if (polish.equalsIgnoreCase("Laptop"))
			return "LAPTOP";
		return polish;
	}
	


}
